-
Notifications
You must be signed in to change notification settings - Fork 927
Simplify ObjectValue #4933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify ObjectValue #4933
Conversation
|
Binary Size ReportAffected SDKs
Test Logs |
Size Analysis Report |
* | ||
* This method applies any outstanding modifications and memoizes the result. | ||
* Further invocations are based on this memoized result. | ||
* Modifies `parent_map` by adding, replacing or deleting the specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/parent_map/fieldsMap?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This is one of those "port of port" PRs. When I implemented iOS (firebase/firebase-ios-sdk#8124) it became apparent that we do not need overlays anymore to implement mutable ObjectValues. There are only needed on Android, since Protobuf manipulations on Android are fairly expensive. On iOS and Web, we can directly edit the Protobuf object and can use a simpler version of ObjectValue.